package java_exceptions;

public class DivideByZeroException
		extends IllegalArgumentException{
	
	private Exception cause;
	public DivideByZeroException(Exception e){
		super(e);
		cause = e;
	}
	public DivideByZeroException(){
		super();
	}
	public String toString() {
		return "Denominator can not be zero";
	}
	public Exception getCause() { return cause; }
}
